<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DBConnection
 *
 * @author PONGPON
 */
class DBConnection {

    public $hostname = "localhost";
    public $database_name = "opengirls_db";
    public $username = "root";
    public $password = "";

    public function connectDatabase() {
        $dbCon = mysql_pconnect($this->hostname, $this->username, $this->password) or trigger_error(mysql_error(), E_USER_ERROR);
        mysql_select_db($this->database_name, $dbCon);
        return $dbCon;
    }

}

?>
